//
// Created by 11510 on 2024/6/7.
//

#ifndef DEMO1_STRING_H
#define DEMO1_STRING_H
#include <stdio.h>

class String
{
public:
    String();
    String(const char *pstr);
    String(const String &rhs);
    String &operator=(const String &rhs);
    ~String();
    void print();
    size_t length() const;
    const char * c_str() const;

private:
    char * _pstr;
};


#endif //DEMO1_STRING_H
